package top.datacluster.basic.niukewang;

import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);


        while (sc.hasNext()){
            String s = sc.nextLine();
            int index;
            char[] src = s.toCharArray();
            int lenght = src.length;
            for (int i = 0; i < lenght; ){
                if (!(src[i] >= 'A' && src[i] <= 'Z') && !(src[i] >= 'a' && src[i] <= 'z')){
                    i++;
                    continue;
                }
                index = i;
                for (int j = i + 1; j < lenght; j++){
                    if (!(src[j] >= 'A' && src[j] <= 'Z') && !(src[j] >= 'a' && src[j] <= 'z')){
                        continue;
                    }
                    if (Character.toLowerCase(src[index]) > Character.toLowerCase(src[j])){
                        char temp = src[index];
                        src[index] = src[j];
                        src[j] = temp;
                    }
                    index = j;
                }
                lenght--;
            }
            for (char c : src){
                System.out.print(c);
            }
            System.out.print('\n');
        }



    }



}


